clear
log using "E:\FIS_duration\returns_over_episodes_rep.log"
infix nep 2-5 type 7-7 ndays 9-12 tret 14-23 xsret 25-34 dwtret 36-45 dwtxsrt 47-56 dret 58-67 dxsret 69-78 cdwtret 80-89 cdwtxsrt 91-100 cdret 102-111 cdxsret 113-122 using "e:\FIS_duration\rets_daily_weighted_returns_rep.txt"
summarize, detail
summarize if type == 1, detail
summarize if type == 2, detail
summarize if type == 3, detail
summarize if ndays >= 20, detail
log close